﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IISLogReader
{
    public class LogRow
    {
        private Dictionary<string, LogField> _fields = new Dictionary<string,LogField>();
        public LogRow(List<LogField> fieldSet, string[] fieldValues)
        {
            for (int i = 0; i < fieldSet.Count; i++)
            {
                _fields.Add(fieldSet[i].FieldName,new LogField(fieldSet[i].FieldName, fieldValues[i], fieldSet[i].FieldIndex));
            }
        }
        public Dictionary<string,LogField> Fields
        {
            get { return _fields; }
            set { _fields = value; }
        }
    }
}
